﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL.BUS;
public partial class Admin_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            UcControls control = new UcControls();

            if (!string.IsNullOrEmpty(Request["menu"]) && control.LoadControl(Request["menu"]))
            {
                holderMenu.Controls.Add(LoadControl(control.Path));
            }

            if (!string.IsNullOrEmpty(Request["control"]) && control.LoadControl(Request["control"]))
            {
                holderContent.Controls.Add(LoadControl(control.Path));
            }
        }
    }
}